package com.yykj.hospital.server.model.repository;

import com.yykj.common.enums.HospitalOnlineTypeEnum;
import com.yykj.hospital.server.model.entity.DoctorOnlinePriceSetting;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorOnlinePriceSettingRepository extends JpaRepository<DoctorOnlinePriceSetting,Integer> {
    List<DoctorOnlinePriceSetting> findAllByDoctorId(String doctorId);
    DoctorOnlinePriceSetting findByDoctorIdAndType(String doctorId, HospitalOnlineTypeEnum type);
    List<DoctorOnlinePriceSetting> findAllByHospitalIdAndType(Integer hospitalId,HospitalOnlineTypeEnum type);
}
